package com.mchat.user.domain.po;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {

    long id;
    String name;
    String password;
    String email;
    String profileImg;
    int gender;
    LocalDateTime createTime;
    /**
     * 账号状态 0正常，1注销，2封禁
     */
    int status =0;
    LocalDate birthday;
    //来自哪里
    String fromRegion="";
    String fromSubregion="";
    //现居地
    String presentRegion="";
    String presentSubregion="";

    //上次更新密码的时间
    LocalDateTime lastUpdate;
    //用户隐私字段
    boolean profileVisible =false;
    boolean searchableByEmail =false;


}
